﻿@{
    ViewBag.Title = "修改";
    Layout = "../Shared/_Layout.cshtml";
}
@using mscook.mvc;
@model mscook.mvc.Areas.weblogin.Models.LoginUserOfVipModel

@section JavaScript
{
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.unobtrusive.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.unobtrusive-ajax.js")"></script>
}
<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-header well">
            <h2><i class="icon-edit"></i></h2>

        </div>
        <div class="box-content">
            @using (Html.BeginForm("Edit", "LoginUserOfVip", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" }))
            {
                <fieldset>
                    <legend>Vip申请受理</legend>
                    <input type="hidden" name="Id" value="@Model.LoginUserOfVip.Id" />
                    <div class="control-group">
                        <label class="control-label">申请人</label>
                        <div class="controls">
                            <div class="input-prepend">
                                <input type="text" readonly="true" value="@Html.Encode(Model.LoginUserOfVip.LoginUser.LoginName)" />
                            </div>
                        </div>
                    </div>
                     <div class="control-group">
                        <label class="control-label">申请人目前积分</label>
                        <div class="controls">
                            <div class="input-prepend">
                                <input type="text" readonly="true" value="@Html.Encode(Model.LoginUserOfVip.LoginUser.Bonus)" />
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">申请人是否为Vip</label>
                        <div class="controls">
                            <div class="input-prepend">
                                <input type="text" readonly="true" value="@Html.Encode(Model.LoginUserOfVip.LoginUser.IsVip ? "是" : "否")" />
                            </div>
                        </div>
                    </div>
                    @if (Model.LoginUserOfVip.LoginUser.IsVip)
                    {
                        <div class="control-group">
                            <label class="control-label">申请人Vip到期时间</label>
                            <div class="controls">
                                <div class="input-prepend">
                                    <input type="text" value="@Model.LoginUserOfVip.LoginUser.VipInvalidDate" readonly="true" />
                                </div>
                            </div>
                        </div>
                    }

                    <div class="control-group">
                        <label class="control-label">发票号</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextBoxFor(loginUserOfVipModel => loginUserOfVipModel.LoginUserOfVip.Numebr, new { size = "16",@readonly="true" })
                            </div>
                        </div>
                    </div>
                   <div class="control-group">
                        <label class="control-label">增加积分</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextBoxFor(loginUserOfVipModel => loginUserOfVipModel.AddBonus)
                            </div>
                            @Html.ValidationMessageFor(loginUserOfVipModel => loginUserOfVipModel.AddBonus)
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">设置Vip期限</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextBoxFor(loginUserOfVipModel => loginUserOfVipModel.DateTime, new {@class="input-xlarge datepicker",@readonly="true" })
                            </div>
                            @Html.ValidationMessageFor(loginUserOfVipModel => loginUserOfVipModel.DateTime)
                        </div>
                    </div>


                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary btn-large">保存</button>
                        <button class="btn btn-large">Cancel</button>
                    </div>
                </fieldset>
            }
        </div>
    </div>
    <!--/span-->

</div>
